package Homework03;

interface Icar{
    void Automaticparking();

    void Unmanned();
}

abstract class Car{
    public abstract void run();
}

class Ordinaryaodi extends Car{

    @Override
    public void run() {
        System.out.println("普通奥迪车正在跑");
    }
}

class Highaodi extends Car implements Icar{
    @Override
    public void run() {
        System.out.println("高端奥迪车正在跑");
    }

    @Override
    public void Automaticparking() {
        System.out.println("高端奥迪车可以自动泊车");
    }

    @Override
    public void Unmanned() {
        System.out.println("高端奥迪车可以无人驾驶");
    }
}


public class Test {
    public static void main(String[] args) {
        Ordinaryaodi ordinaryaodi = new Ordinaryaodi();
        ordinaryaodi.run();
        Highaodi highaodi = new Highaodi();
        highaodi.run();
        highaodi.Automaticparking();
        highaodi.Unmanned();

    }
}
